package example.pattern.templatemethod;

public class CharDisplay extends AbstractDisplay {
	private Character c;
	
	public CharDisplay(Character c) {
		super();
		this.c = c;
	}

	@Override
	protected void printOpen() {
		System.out.print("<<");

	}

	@Override
	protected void printContent() {
		System.out.print(c);
	}

	@Override
	protected void printClose() {
		System.out.println(">>");
	}

}
